<div>
  <d-toggle [(ngModel)]="enable" [beforeChange]="beforeChange" (change)="onChange($event)"></d-toggle>
  <span>state: {{ enable }}</span>
</div>
